﻿namespace jzgl.Controller
{
    using System;
    using System.Security.Cryptography;
    using System.Text;

    internal class myMD5
    {
        public string EncryptCode(string password)
        {
            byte[] bytes = new UnicodeEncoding().GetBytes(password);
            return BitConverter.ToString(((HashAlgorithm) CryptoConfig.CreateFromName("MD5")).ComputeHash(bytes));
        }
    }
}

